#ifndef CLICK_QOSSWITCH_HH
#define CLICK_QOSSWITCH_HH

#include <click/element.hh>
#include <clicknet/ether.h>
#include <click/vector.cc>
#include <click/timer.hh>

CLICK_DECLS

class QosSwitch : public Element {

public:
	QosSwitch();
	~QosSwitch();
	
	const char *class_name() const { return "QosSwitch"; }
	const char *port_count() const { return "1/2"; }
	const char *processing() const { return PUSH; }
	
	int configure(Vector<String>& conf, ErrorHandler* errh);
	void push(int port, Packet* p);
	
	void add_handlers();
	static int doSwitch(const String &conf, Element *e, void * thunk, ErrorHandler * errh);
	
private:
	static bool fSwitch;
};

CLICK_ENDDECLS
#endif
